#ifndef ALIEN_ATTACK_ANIMATEDGRAPHIC_H
#define ALIEN_ATTACK_ANIMATEDGRAPHIC_H

#include "ShooterObject.h"
#include "GameObjectFactory.h"
#include <iostream>

struct AnimateGraphic : public ShooterObject
{
    AnimateGraphic();
    virtual ~AnimateGraphic() {}
    virtual void load(std::unique_ptr<LoadedParams> const &pParams);
    virtual void draw();
    virtual void update();
    virtual void clean();

private:
    int m_animSpeed;
    int m_frameCount;
};

struct AnimateGraphicCreator : public BaseCreator
{
    virtual GameObject *createGameObject() const
    {
        return new AnimateGraphic();
    }
};

#endif // header file protect